import Vue from "vue";
import App from "./App";

import uView from "uview-ui";
Vue.use(uView);

Vue.config.productionTip = false;

App.mpType = "app";

import store from "./store";
Vue.prototype.$store = store;

import mixin from "./utils/mixin";

Vue.mixin(mixin);

const app = new Vue({
  store,
  ...App,
});
// import compareVersions from "compare-versions/index.js";

// const { version } = my.getSystemInfoSync();

// if (compareVersions(version, "10.1.85") < 0) {
//   my.ap && my.ap.updateAlipayClient && my.ap.updateAlipayClient();
// }
// App({
//   onLaunch() {},
//   onShow() {},
// });
// // http拦截器，此为需要加入的内容，如果不是写在common目录，请自行修改引入路径
// import httpInterceptor from "@/common/http.interceptor.js";
// // 这里需要写在最后，是为了等Vue创建对象完成，引入"app"对象(也即页面的"this"实例)
// Vue.use(httpInterceptor, app);
// 引入请求封装，将app参数传递到配置中
require("./config/request.js")(app);
app.$mount();
